package com.rentong.cust.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rentong.common.annotation.Excel;
import com.rentong.common.core.domain.BaseEntity;

/**
 * 维修表列表对象 cust_maintenance
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public class CustMaintenance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修服务的id（导出excel时，二级维修区域的名称是每个清单材料的第一个） */
    private Long maintenanceId;

    /** 用户的id */
    @Excel(name = "用户的id")
    private Long custId;

    /** 维修编号（格式：WXYYYYMMDDHHMMSSsss） */
    @Excel(name = "维修编号", readConverterExp = "格=式：WXYYYYMMDDHHMMSSsss")
    private String maintenanceNo;

    /** 工人姓名（默认是点击新增工人的名字，可改） */
    @Excel(name = "工人姓名", readConverterExp = "默=认是点击新增工人的名字，可改")
    private String workerName;

    /** 一级维修区域的id */
    @Excel(name = "一级维修区域的id")
    private Long regionId;

    /** 二级维修区域的名称 */
    @Excel(name = "二级维修区域的名称")
    private String regionLevelTwoName;

    /** 发包人 */
    @Excel(name = "发包人")
    private String fabaoren;

    /** 事件描述 */
    @Excel(name = "事件描述")
    private String eventDescription;

    /** 1：已签名；2：未签名 */
    @Excel(name = "1：已签名；2：未签名")
    private Integer isSign;

    /** 1：草稿；2：已提交；3：已生成 */
    @Excel(name = "1：草稿；2：已提交；3：已生成")
    private Integer maintenanceState;

    /** 工期的天数 */
    @Excel(name = "工期的天数")
    private Long maintenanceNum;

    /** 维修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setMaintenanceId(Long maintenanceId) 
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId() 
    {
        return maintenanceId;
    }
    public void setCustId(Long custId) 
    {
        this.custId = custId;
    }

    public Long getCustId() 
    {
        return custId;
    }
    public void setMaintenanceNo(String maintenanceNo) 
    {
        this.maintenanceNo = maintenanceNo;
    }

    public String getMaintenanceNo() 
    {
        return maintenanceNo;
    }
    public void setWorkerName(String workerName) 
    {
        this.workerName = workerName;
    }

    public String getWorkerName() 
    {
        return workerName;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setRegionLevelTwoName(String regionLevelTwoName) 
    {
        this.regionLevelTwoName = regionLevelTwoName;
    }

    public String getRegionLevelTwoName() 
    {
        return regionLevelTwoName;
    }
    public void setFabaoren(String fabaoren) 
    {
        this.fabaoren = fabaoren;
    }

    public String getFabaoren() 
    {
        return fabaoren;
    }
    public void setEventDescription(String eventDescription) 
    {
        this.eventDescription = eventDescription;
    }

    public String getEventDescription() 
    {
        return eventDescription;
    }
    public void setIsSign(Integer isSign) 
    {
        this.isSign = isSign;
    }

    public Integer getIsSign() 
    {
        return isSign;
    }
    public void setMaintenanceState(Integer maintenanceState) 
    {
        this.maintenanceState = maintenanceState;
    }

    public Integer getMaintenanceState() 
    {
        return maintenanceState;
    }
    public void setMaintenanceNum(Long maintenanceNum) 
    {
        this.maintenanceNum = maintenanceNum;
    }

    public Long getMaintenanceNum() 
    {
        return maintenanceNum;
    }
    public void setMaintenanceTime(Date maintenanceTime) 
    {
        this.maintenanceTime = maintenanceTime;
    }

    public Date getMaintenanceTime() 
    {
        return maintenanceTime;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceId", getMaintenanceId())
            .append("custId", getCustId())
            .append("maintenanceNo", getMaintenanceNo())
            .append("workerName", getWorkerName())
            .append("regionId", getRegionId())
            .append("regionLevelTwoName", getRegionLevelTwoName())
            .append("fabaoren", getFabaoren())
            .append("eventDescription", getEventDescription())
            .append("isSign", getIsSign())
            .append("maintenanceState", getMaintenanceState())
            .append("maintenanceNum", getMaintenanceNum())
            .append("maintenanceTime", getMaintenanceTime())
            .append("updateTime", getUpdateTime())
            .append("addTime", getAddTime())
            .toString();
    }
}
